<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>TreeMenu</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<style>
#menuUL {
	margin:0px 0px 0px;
	list-style:none;
}
/*#menuUL LI {
	margin-bottom:6px;
	background-image:url(images/button/menu_text_bg.gif);
	width:138px;
	height:24px;
}*/
#menuUL LI DIV {
	text-align:center;
	padding-top:5px;
	/*color:#EE7E05;*/
	color:#FFFFFF;
	letter-spacing:3px;
	cursor:pointer;
}

.menuOut {
	margin-bottom:6px;
	background-image:url(images/button/menu_text_bg.gif);
	width:138px;
	height:24px;
}

.menuOver {
	margin-bottom:6px;
	background-image:url(images/button/menu_text_bg2.gif);
	width:138px;
	height:24px;
}


</style>
<script language="javascript" type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script language="javascript" type="text/javascript">
var j$ = jQuery.noConflict();
j$(document).ready(
	function() {
		j$(".mm").each(
			function(i) {
				j$(this).attr("class", "menuOut");
				j$(this).mouseover(
					function() {
						swapImage(j$(this).attr("id"), 1);
					}
				);
				j$(this).mouseout(
					function() {
						swapImage(j$(this).attr("id"), 0);
					}
				);
				j$(this).click(
					function() {
						_forward(j$(this).attr("url"), j$(this).attr("openType"));
						var curId=j$(this).attr("id");
						var index=curId.substring(2, curId.length);
						window.parent.setPlaceInfo(j$(eval("div"+index)).text() ,j$(this).attr("openType"));
					}
				);
				if(j$(this).attr("mod")!="402892e5175daafd01175daca8ae0001") {
					j$(this).hide();
				}
			}
		);
	}
);

function swapImage(id, flag) {
	if(flag==0) {
		j$(eval(id)).attr("class","menuOut");
	}else {
		j$(eval(id)).attr("class","menuOver");
	}
}

function filterMenu(mod) {
	if(mod=="") {
		return;
	}
	j$("#menuUL > li").each(
		function(i) {
			curMod=j$(this).attr("mod");
			if(curMod==mod) {
				j$(this).show();
			}else {
				j$(this).hide();
			}
		}
	);
	//alert(j$("#menuUL > li").length);
}
//********************************************************************************
function _forward(page, openType) {
    var dot = ".";
	if(page.indexOf("http://") > -1) {
	    dot = "";
	}
    if(openType == 0) {
	    window.parent.frames[1].location.href = dot + page;
	}else if(openType == 1) {
	    window.open(dot + page, "", "resizable=yes,scrollbars=yes");
	}else if(openType == 2) {
	    window.parent.location.href = dot + page;
	}
}
</script>
</head>
<body style="padding:12px 6px 6px 6px; font-size:12px; background-image:url(images/left_bg.gif)">
<ul id="menuUL">
	${menu}
</ul>
<script>
<!--
/*function window.onload() {
    for(var i=1;i<=10;i++) {
	    if(eval("tree" + i) == null) {
		    parent.document.all["menuTd"][i-1].style.display = "none";
		}
	}
}*/
//-->
</script>
</body>
</html>